﻿package plugin.newteam
{
    import com.core.*;
    import com.sh.game.control.*;

    public class TeamControl extends ModuleControl
    {

        public function TeamControl(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function update(param1:Obproxy, param2:ProxyChange) : void
        {
            if (param1.getName() == "team")
            {
                if (param2.property == "init")
                {
                    this.target.getTeam();
                }
                else if (param2.property == "addteamer")
                {
                }
                else if (param2.property == "subteamer")
                {
                }
                else if (param2.property == "changeleader")
                {
                }
                else if (param2.property == "dissolve")
                {
                }
                else if (param2.property == "updateNear")
                {
                    this.target.getNear(param2.newvalue);
                }
                else if (param2.property == "teamcount")
                {
                    this.target.teamBack(param2.newvalue);
                }
                else if (param2.property == "showNearMune")
                {
                    this.target.showNearMune(param2.newvalue);
                }
                else if (param2.property == "autoleave")
                {
                    this.target.autoleave();
                }
            }
            return;
        }// end function

    }
}
